hcf of n numbers in python